.click-example {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 10px 0;
  text-align: center;
}

.click-example h3 {
  margin: 0 0 15px 0;
  color: #495057;
}

.click-example button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  margin: 0 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.click-example button:hover {
  background-color: #0056b3;
}

.click-example p {
  margin: 10px 0;
  color: #495057;
}

.form-example {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 10px 0;
}

.form-example h3 {
  margin: 0 0 15px 0;
  color: #495057;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #495057;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.form-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.form-buttons button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.form-buttons button:last-child {
  background-color: #6c757d;
}

.form-buttons button:hover {
  opacity: 0.9;
}

.form-data {
  background-color: #e9ecef;
  padding: 15px;
  border-radius: 4px;
  margin-top: 15px;
}

.form-data h4 {
  margin: 0 0 10px 0;
  color: #495057;
}

.form-data pre {
  margin: 0;
  font-size: 12px;
  color: #495057;
  white-space: pre-wrap;
  word-break: break-all;
}

.mouse-example {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 10px 0;
}

.mouse-example h3 {
  margin: 0 0 15px 0;
  color: #495057;
}

.mouse-area {
  background-color: white;
  border: 2px dashed #ced4da;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  cursor: crosshair;
  transition: background-color 0.3s;
}

.mouse-area:hover {
  background-color: #f0f8ff;
}

.mouse-area p {
  margin: 10px 0;
  color: #495057;
}

.keyboard-example {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 10px 0;
}

.keyboard-example h3 {
  margin: 0 0 15px 0;
  color: #495057;
}

.keyboard-area input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 15px;
}

.key-history {
  margin-top: 15px;
}

.key-history h4 {
  margin: 0 0 10px 0;
  color: #495057;
}

.key-history ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
}

.key-history li {
  background-color: #e9ecef;
  padding: 5px 10px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
}

.special-keys {
  margin-top: 15px;
  padding: 10px;
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  border-radius: 4px;
}

.special-keys h4 {
  margin: 0 0 5px 0;
  color: #0c5460;
}

.special-keys p {
  margin: 5px 0;
  color: #0c5460;
  font-size: 14px;
}

.event-object-example {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 10px 0;
}

.event-object-example h3 {
  margin: 0 0 15px 0;
  color: #495057;
}

.event-demos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.demo-item {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
}

.demo-item h4 {
  margin: 0 0 10px 0;
  color: #495057;
}

.custom-link {
  color: #007bff;
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid #007bff;
  border-radius: 4px;
  display: inline-block;
  transition: all 0.2s;
}

.custom-link:hover {
  background-color: #007bff;
  color: white;
}

.success-message {
  margin-top: 10px;
  padding: 8px;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  color: #155724;
  font-size: 14px;
}

.context-area {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.event-delegation-example {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 10px 0;
}

.event-delegation-example h3 {
  margin: 0 0 15px 0;
  color: #495057;
}

.event-delegation-example p {
  margin: 0 0 15px 0;
  color: #6c757d;
}

.add-button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 15px;
}

.add-button:hover {
  background-color: #218838;
}

.item-list {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
}

.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #f1f3f4;
  transition: background-color 0.2s;
}

.item:last-child {
  border-bottom: none;
}

.item.active {
  background-color: #d4edda;
}

.item button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.item.active button {
  background-color: #dc3545;
}

.custom-event-example {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 10px 0;
}

.custom-event-example h3 {
  margin: 0 0 15px 0;
  color: #495057;
}

.action-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.action-buttons button {
  background-color: #6f42c1;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.action-buttons button:hover {
  background-color: #5a32a3;
}

.event-log {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
}

.event-log h4 {
  margin: 0 0 10px 0;
  color: #495057;
}

.event-log ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-log li {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-bottom: 1px solid #f1f3f4;
  font-size: 14px;
}

.event-log li:last-child {
  border-bottom: none;
}

.event-time {
  color: #6c757d;
  font-size: 12px;
  min-width: 80px;
}

.event-name {
  color: #495057;
  font-weight: 500;
  min-width: 100px;
}

.event-data {
  color: #6c757d;
  font-family: monospace;
  font-size: 12px;
}